package cn.iocoder.yudao.module.cms.qlink.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

import static cn.iocoder.yudao.module.api.cms.DictTypeConstants.QLINK_ACTION;
import static cn.iocoder.yudao.module.api.cms.DictTypeConstants.QLINK_IDENTIFY;

@Tag(name = "快捷链接 Response VO")
@Data
@ExcelIgnoreUnannotated
public class QlinkRespVO {

    @Schema(description = "唯一编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "6742")
    @ExcelProperty("唯一编号")
    private Long id;

    @Schema(description = "位置标识：首页九宫格（home_grid）、首页轮播图（home_carousel）、首页横幅（home_banner）", requiredMode = Schema.RequiredMode.REQUIRED, example = "home_banner")
    @ExcelProperty("位置")
    @DictFormat(QLINK_IDENTIFY)
    private String identify;

    @Schema(description = "自身标识：关于我们（about_us）、联系我们（contact_us）", example = "about_us")
    @ExcelProperty("标识")
    private String subIdentify;

    @Schema(description = "主标题", requiredMode = Schema.RequiredMode.REQUIRED, example = "尊享用户")
    @ExcelProperty("主标题")
    private String title;

    @Schema(description = "副标题", example = "尊享用户权益，更多优惠……")
    @ExcelProperty("副标题")
    private String subTitle;

    @Schema(description = "动作类型：无（none）、打开页面（page）、加载网页（web）、跳转小程序（miniapp）、拨打电话（phone）、播放视频（video）", requiredMode = Schema.RequiredMode.REQUIRED, example = "home_banner")
    @ExcelProperty("动作类型")
    @DictFormat(QLINK_ACTION)
    private String actionType;

    @Schema(description = "图片地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "./placeholder.png")
    @ExcelProperty("图片地址")
    private String picUrl;

    @Schema(description = "跳转链接")
    @ExcelProperty("跳转链接")
    private String linkUrl;

}
